package com.example.demo.common.exception;

import lombok.Data;

@Data
public class BlogException extends RuntimeException{

    public int code;
    public String message;

    public BlogException(){

    }
    public BlogException(String message){
        this.message = message;
    }

    public BlogException(String message, int code){
        this.message = message;
        this.code = code;
    }
}
